package com.alibaba.controller;

import com.alibaba.bean.PerNoteList;
import com.alibaba.bean.PerNoteListResult;
import com.alibaba.service.PerListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/per", method = RequestMethod.GET)
public class PerListController {

    @Autowired
    private PerListService perListService;

    @PostMapping("/perList")
    public PerNoteListResult personal(PerNoteList perNoteList) {
        return perListService.getPerList(perNoteList);
    }

}
